package com.zsp.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zsp.entity.Message;
import com.zsp.entity.vo.MessageVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MessageDao extends BaseMapper<Message> {
    List<Message> getPageList(@Param("type") Integer type, @Param("pageNum") Integer pageNum, @Param("pageSize") Integer pageSize);

    int verify(@Param("id") Integer id, @Param("type") Integer type);


    Page<MessageVo> selectPageVo(Page<MessageVo> page);
}
